package com.briup.jd2511.jd2511bookstore.config;

import com.briup.jd2511.jd2511bookstore.controller.UserController;
import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * dom4j的配置类
 */
@Configuration
public class Dom4jConfig {
    // 获得SaxReader的bean对象
    @Bean("sr")
    public SAXReader saxReader(UserController userController){
        System.out.println("userController: "+userController);
        return new SAXReader();
    }
}
